/*
 * ============================================================================
 *
 *       Filename:  main.c
 *
 *
 *        Created:  10/04/2011 03:35:09 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  durand_y, <durand.yoan@gmail.com>
 *
 * ============================================================================
 */
#include "find.h"

int             main(int            argc,
                     char           **argv)
{
    s_list  *list = NULL;
    s_list  *dirlist = NULL;
    int     i = 0;

    i = 1;
    list = init();
    dirlist = init();
    if (argc == 1)
    {
        listdir(".", list);
        return (print(list));
    }
    else
    {
        return (exec1 (&i, argv, &argc, list, dirlist));
    }
    return 1;
}

